/*
 * MIT License
 *
 * Copyright (c) 2018 Aberic Yang
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: node/NodeBase.proto

package cn.aberic.bother.entity.proto.node;

public final class NodeBaseProto {
  private NodeBaseProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface NodeBaseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:NodeBase)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * 创建时间戳/节点ID
     * </pre>
     *
     * <code>int64 timestamp = 1;</code>
     */
    long getTimestamp();

    /**
     * <pre>
     * 节点地址
     * </pre>
     *
     * <code>string address = 2;</code>
     */
    String getAddress();
    /**
     * <pre>
     * 节点地址
     * </pre>
     *
     * <code>string address = 2;</code>
     */
    com.google.protobuf.ByteString
        getAddressBytes();

    /**
     * <pre>
     * 节点绑定账户地址
     * </pre>
     *
     * <code>string accountAddress = 3;</code>
     */
    String getAccountAddress();
    /**
     * <pre>
     * 节点绑定账户地址
     * </pre>
     *
     * <code>string accountAddress = 3;</code>
     */
    com.google.protobuf.ByteString
        getAccountAddressBytes();

    /**
     * <pre>
     * CPU个数
     * </pre>
     *
     * <code>int32 cpu = 4;</code>
     */
    int getCpu();

    /**
     * <pre>
     * 可用剩余内存
     * </pre>
     *
     * <code>int64 freeMemory = 5;</code>
     */
    long getFreeMemory();

    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    java.util.List<String>
        getHashesList();
    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    int getHashesCount();
    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    String getHashes(int index);
    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    com.google.protobuf.ByteString
        getHashesBytes(int index);
  }
  /**
   * <pre>
   * 节点基类对象
   * </pre>
   *
   * Protobuf type {@code NodeBase}
   */
  public  static final class NodeBase extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:NodeBase)
      NodeBaseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use NodeBase.newBuilder() to construct.
    private NodeBase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private NodeBase() {
      timestamp_ = 0L;
      address_ = "";
      accountAddress_ = "";
      cpu_ = 0;
      freeMemory_ = 0L;
      hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private NodeBase(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              timestamp_ = input.readInt64();
              break;
            }
            case 18: {
              String s = input.readStringRequireUtf8();

              address_ = s;
              break;
            }
            case 26: {
              String s = input.readStringRequireUtf8();

              accountAddress_ = s;
              break;
            }
            case 32: {

              cpu_ = input.readInt32();
              break;
            }
            case 40: {

              freeMemory_ = input.readInt64();
              break;
            }
            case 50: {
              String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
                hashes_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000020;
              }
              hashes_.add(s);
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
          hashes_ = hashes_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return NodeBaseProto.internal_static_NodeBase_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return NodeBaseProto.internal_static_NodeBase_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              NodeBaseProto.NodeBase.class, NodeBaseProto.NodeBase.Builder.class);
    }

    private int bitField0_;
    public static final int TIMESTAMP_FIELD_NUMBER = 1;
    private long timestamp_;
    /**
     * <pre>
     * 创建时间戳/节点ID
     * </pre>
     *
     * <code>int64 timestamp = 1;</code>
     */
    public long getTimestamp() {
      return timestamp_;
    }

    public static final int ADDRESS_FIELD_NUMBER = 2;
    private volatile Object address_;
    /**
     * <pre>
     * 节点地址
     * </pre>
     *
     * <code>string address = 2;</code>
     */
    public String getAddress() {
      Object ref = address_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        address_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * 节点地址
     * </pre>
     *
     * <code>string address = 2;</code>
     */
    public com.google.protobuf.ByteString
        getAddressBytes() {
      Object ref = address_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        address_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ACCOUNTADDRESS_FIELD_NUMBER = 3;
    private volatile Object accountAddress_;
    /**
     * <pre>
     * 节点绑定账户地址
     * </pre>
     *
     * <code>string accountAddress = 3;</code>
     */
    public String getAccountAddress() {
      Object ref = accountAddress_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        accountAddress_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * 节点绑定账户地址
     * </pre>
     *
     * <code>string accountAddress = 3;</code>
     */
    public com.google.protobuf.ByteString
        getAccountAddressBytes() {
      Object ref = accountAddress_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        accountAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CPU_FIELD_NUMBER = 4;
    private int cpu_;
    /**
     * <pre>
     * CPU个数
     * </pre>
     *
     * <code>int32 cpu = 4;</code>
     */
    public int getCpu() {
      return cpu_;
    }

    public static final int FREEMEMORY_FIELD_NUMBER = 5;
    private long freeMemory_;
    /**
     * <pre>
     * 可用剩余内存
     * </pre>
     *
     * <code>int64 freeMemory = 5;</code>
     */
    public long getFreeMemory() {
      return freeMemory_;
    }

    public static final int HASHES_FIELD_NUMBER = 6;
    private com.google.protobuf.LazyStringList hashes_;
    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getHashesList() {
      return hashes_;
    }
    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    public int getHashesCount() {
      return hashes_.size();
    }
    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    public String getHashes(int index) {
      return hashes_.get(index);
    }
    /**
     * <pre>
     * 节点执行合约的Hash列表
     * </pre>
     *
     * <code>repeated string hashes = 6;</code>
     */
    public com.google.protobuf.ByteString
        getHashesBytes(int index) {
      return hashes_.getByteString(index);
    }

    private byte memoizedIsInitialized = -1;
    @Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (timestamp_ != 0L) {
        output.writeInt64(1, timestamp_);
      }
      if (!getAddressBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_);
      }
      if (!getAccountAddressBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, accountAddress_);
      }
      if (cpu_ != 0) {
        output.writeInt32(4, cpu_);
      }
      if (freeMemory_ != 0L) {
        output.writeInt64(5, freeMemory_);
      }
      for (int i = 0; i < hashes_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hashes_.getRaw(i));
      }
      unknownFields.writeTo(output);
    }

    @Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (timestamp_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, timestamp_);
      }
      if (!getAddressBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_);
      }
      if (!getAccountAddressBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, accountAddress_);
      }
      if (cpu_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, cpu_);
      }
      if (freeMemory_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, freeMemory_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < hashes_.size(); i++) {
          dataSize += computeStringSizeNoTag(hashes_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getHashesList().size();
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @Override
    public boolean equals(final Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof NodeBaseProto.NodeBase)) {
        return super.equals(obj);
      }
      NodeBaseProto.NodeBase other = (NodeBaseProto.NodeBase) obj;

      boolean result = true;
      result = result && (getTimestamp()
          == other.getTimestamp());
      result = result && getAddress()
          .equals(other.getAddress());
      result = result && getAccountAddress()
          .equals(other.getAccountAddress());
      result = result && (getCpu()
          == other.getCpu());
      result = result && (getFreeMemory()
          == other.getFreeMemory());
      result = result && getHashesList()
          .equals(other.getHashesList());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTimestamp());
      hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getAddress().hashCode();
      hash = (37 * hash) + ACCOUNTADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getAccountAddress().hashCode();
      hash = (37 * hash) + CPU_FIELD_NUMBER;
      hash = (53 * hash) + getCpu();
      hash = (37 * hash) + FREEMEMORY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getFreeMemory());
      if (getHashesCount() > 0) {
        hash = (37 * hash) + HASHES_FIELD_NUMBER;
        hash = (53 * hash) + getHashesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static NodeBaseProto.NodeBase parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static NodeBaseProto.NodeBase parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static NodeBaseProto.NodeBase parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static NodeBaseProto.NodeBase parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static NodeBaseProto.NodeBase parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static NodeBaseProto.NodeBase parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static NodeBaseProto.NodeBase parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static NodeBaseProto.NodeBase parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static NodeBaseProto.NodeBase parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static NodeBaseProto.NodeBase parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static NodeBaseProto.NodeBase parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static NodeBaseProto.NodeBase parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(NodeBaseProto.NodeBase prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @Override
    protected Builder newBuilderForType(
        BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * 节点基类对象
     * </pre>
     *
     * Protobuf type {@code NodeBase}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:NodeBase)
        NodeBaseProto.NodeBaseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return NodeBaseProto.internal_static_NodeBase_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return NodeBaseProto.internal_static_NodeBase_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                NodeBaseProto.NodeBase.class, NodeBaseProto.NodeBase.Builder.class);
      }

      // Construct using cn.aberic.bother.entity.proto.node.NodeBaseProto.NodeBase.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        timestamp_ = 0L;

        address_ = "";

        accountAddress_ = "";

        cpu_ = 0;

        freeMemory_ = 0L;

        hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000020);
        return this;
      }

      @Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return NodeBaseProto.internal_static_NodeBase_descriptor;
      }

      @Override
      public NodeBaseProto.NodeBase getDefaultInstanceForType() {
        return NodeBaseProto.NodeBase.getDefaultInstance();
      }

      @Override
      public NodeBaseProto.NodeBase build() {
        NodeBaseProto.NodeBase result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @Override
      public NodeBaseProto.NodeBase buildPartial() {
        NodeBaseProto.NodeBase result = new NodeBaseProto.NodeBase(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.timestamp_ = timestamp_;
        result.address_ = address_;
        result.accountAddress_ = accountAddress_;
        result.cpu_ = cpu_;
        result.freeMemory_ = freeMemory_;
        if (((bitField0_ & 0x00000020) == 0x00000020)) {
          hashes_ = hashes_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000020);
        }
        result.hashes_ = hashes_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      @Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof NodeBaseProto.NodeBase) {
          return mergeFrom((NodeBaseProto.NodeBase)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(NodeBaseProto.NodeBase other) {
        if (other == NodeBaseProto.NodeBase.getDefaultInstance()) return this;
        if (other.getTimestamp() != 0L) {
          setTimestamp(other.getTimestamp());
        }
        if (!other.getAddress().isEmpty()) {
          address_ = other.address_;
          onChanged();
        }
        if (!other.getAccountAddress().isEmpty()) {
          accountAddress_ = other.accountAddress_;
          onChanged();
        }
        if (other.getCpu() != 0) {
          setCpu(other.getCpu());
        }
        if (other.getFreeMemory() != 0L) {
          setFreeMemory(other.getFreeMemory());
        }
        if (!other.hashes_.isEmpty()) {
          if (hashes_.isEmpty()) {
            hashes_ = other.hashes_;
            bitField0_ = (bitField0_ & ~0x00000020);
          } else {
            ensureHashesIsMutable();
            hashes_.addAll(other.hashes_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        return true;
      }

      @Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        NodeBaseProto.NodeBase parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (NodeBaseProto.NodeBase) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long timestamp_ ;
      /**
       * <pre>
       * 创建时间戳/节点ID
       * </pre>
       *
       * <code>int64 timestamp = 1;</code>
       */
      public long getTimestamp() {
        return timestamp_;
      }
      /**
       * <pre>
       * 创建时间戳/节点ID
       * </pre>
       *
       * <code>int64 timestamp = 1;</code>
       */
      public Builder setTimestamp(long value) {

        timestamp_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 创建时间戳/节点ID
       * </pre>
       *
       * <code>int64 timestamp = 1;</code>
       */
      public Builder clearTimestamp() {

        timestamp_ = 0L;
        onChanged();
        return this;
      }

      private Object address_ = "";
      /**
       * <pre>
       * 节点地址
       * </pre>
       *
       * <code>string address = 2;</code>
       */
      public String getAddress() {
        Object ref = address_;
        if (!(ref instanceof String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          address_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      /**
       * <pre>
       * 节点地址
       * </pre>
       *
       * <code>string address = 2;</code>
       */
      public com.google.protobuf.ByteString
          getAddressBytes() {
        Object ref = address_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          address_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * 节点地址
       * </pre>
       *
       * <code>string address = 2;</code>
       */
      public Builder setAddress(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }

        address_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点地址
       * </pre>
       *
       * <code>string address = 2;</code>
       */
      public Builder clearAddress() {

        address_ = getDefaultInstance().getAddress();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点地址
       * </pre>
       *
       * <code>string address = 2;</code>
       */
      public Builder setAddressBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

        address_ = value;
        onChanged();
        return this;
      }

      private Object accountAddress_ = "";
      /**
       * <pre>
       * 节点绑定账户地址
       * </pre>
       *
       * <code>string accountAddress = 3;</code>
       */
      public String getAccountAddress() {
        Object ref = accountAddress_;
        if (!(ref instanceof String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          accountAddress_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      /**
       * <pre>
       * 节点绑定账户地址
       * </pre>
       *
       * <code>string accountAddress = 3;</code>
       */
      public com.google.protobuf.ByteString
          getAccountAddressBytes() {
        Object ref = accountAddress_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          accountAddress_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * 节点绑定账户地址
       * </pre>
       *
       * <code>string accountAddress = 3;</code>
       */
      public Builder setAccountAddress(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }

        accountAddress_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点绑定账户地址
       * </pre>
       *
       * <code>string accountAddress = 3;</code>
       */
      public Builder clearAccountAddress() {

        accountAddress_ = getDefaultInstance().getAccountAddress();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点绑定账户地址
       * </pre>
       *
       * <code>string accountAddress = 3;</code>
       */
      public Builder setAccountAddressBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

        accountAddress_ = value;
        onChanged();
        return this;
      }

      private int cpu_ ;
      /**
       * <pre>
       * CPU个数
       * </pre>
       *
       * <code>int32 cpu = 4;</code>
       */
      public int getCpu() {
        return cpu_;
      }
      /**
       * <pre>
       * CPU个数
       * </pre>
       *
       * <code>int32 cpu = 4;</code>
       */
      public Builder setCpu(int value) {

        cpu_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * CPU个数
       * </pre>
       *
       * <code>int32 cpu = 4;</code>
       */
      public Builder clearCpu() {

        cpu_ = 0;
        onChanged();
        return this;
      }

      private long freeMemory_ ;
      /**
       * <pre>
       * 可用剩余内存
       * </pre>
       *
       * <code>int64 freeMemory = 5;</code>
       */
      public long getFreeMemory() {
        return freeMemory_;
      }
      /**
       * <pre>
       * 可用剩余内存
       * </pre>
       *
       * <code>int64 freeMemory = 5;</code>
       */
      public Builder setFreeMemory(long value) {

        freeMemory_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 可用剩余内存
       * </pre>
       *
       * <code>int64 freeMemory = 5;</code>
       */
      public Builder clearFreeMemory() {

        freeMemory_ = 0L;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureHashesIsMutable() {
        if (!((bitField0_ & 0x00000020) == 0x00000020)) {
          hashes_ = new com.google.protobuf.LazyStringArrayList(hashes_);
          bitField0_ |= 0x00000020;
         }
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public com.google.protobuf.ProtocolStringList
          getHashesList() {
        return hashes_.getUnmodifiableView();
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public int getHashesCount() {
        return hashes_.size();
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public String getHashes(int index) {
        return hashes_.get(index);
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public com.google.protobuf.ByteString
          getHashesBytes(int index) {
        return hashes_.getByteString(index);
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public Builder setHashes(
          int index, String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureHashesIsMutable();
        hashes_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public Builder addHashes(
          String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureHashesIsMutable();
        hashes_.add(value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public Builder addAllHashes(
          Iterable<String> values) {
        ensureHashesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, hashes_);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public Builder clearHashes() {
        hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * 节点执行合约的Hash列表
       * </pre>
       *
       * <code>repeated string hashes = 6;</code>
       */
      public Builder addHashesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureHashesIsMutable();
        hashes_.add(value);
        onChanged();
        return this;
      }
      @Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      @Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:NodeBase)
    }

    // @@protoc_insertion_point(class_scope:NodeBase)
    private static final NodeBaseProto.NodeBase DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new NodeBaseProto.NodeBase();
    }

    public static NodeBaseProto.NodeBase getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<NodeBase>
        PARSER = new com.google.protobuf.AbstractParser<NodeBase>() {
      @Override
      public NodeBase parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new NodeBase(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<NodeBase> parser() {
      return PARSER;
    }

    @Override
    public com.google.protobuf.Parser<NodeBase> getParserForType() {
      return PARSER;
    }

    @Override
    public NodeBaseProto.NodeBase getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_NodeBase_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_NodeBase_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\023node/NodeBase.proto\"w\n\010NodeBase\022\021\n\ttim" +
      "estamp\030\001 \001(\003\022\017\n\007address\030\002 \001(\t\022\026\n\016account" +
      "Address\030\003 \001(\t\022\013\n\003cpu\030\004 \001(\005\022\022\n\nfreeMemory" +
      "\030\005 \001(\003\022\016\n\006hashes\030\006 \003(\tB3\n\"cn.aberic.both" +
      "er.entity.proto.nodeB\rNodeBaseProtob\006pro" +
      "to3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_NodeBase_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_NodeBase_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_NodeBase_descriptor,
        new String[] { "Timestamp", "Address", "AccountAddress", "Cpu", "FreeMemory", "Hashes", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
